<% include ../pageHeader %>

<div id="mainWrapper">
    <div id="content" class="content">
        <div id="innerContent">
            <div class="textbox" class="content">
                <div class="textbox-title"><h4><%= __('global_settings') %></h4></div>
                <div class="textbox-content">
                        <form method="post" action="?in=settings&act=update">
                            <input name="_csrf" type="hidden" value="<%- ctx.csrf %>" />
                    <table border="0" cellpadding="2" cellspacing="1">
                            <tr>
                                <td class="formbox-rowheader" width="140"><%= __('blog_title') %>:</td>
                                <td class="formbox-content">
                                    <input type="text" name="blogTitle" size="60"
                                                                   value="<%= helper.HTMLEncodeLite(
                                                                           theCache.settings["blogTitle"]) %>"
                                                                   maxlength="250" class="text"/></td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('blog_desc') %>:</td>
                                <td class="formbox-content">
                                    <input type="text" name="blogDescription" size="60"
                                                                   value="<%= helper.HTMLEncodeLite(
                                                                           theCache.settings["blogDescription"]) %>"
                                                                   maxlength="250" class="text"/></td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('blog_base_url') %>:</td>
                                <td class="formbox-content">
                                    <input type="text" name="baseURL" size="60"
                                                                   value="<%= helper.HTMLEncodeLite(
                                                                           theCache.settings["baseURL"]) %>"
                                                                   maxlength="250" class="text"/></td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('blog_logo_image') %>:</td>
                                <td class="formbox-content">
                                    <input type="text" name="logoImage" size="60"
                                                                   value="<%= helper.HTMLEncodeLite(
                                                                           theCache.settings["logoImage"]) %>"
                                                                   maxlength="250" class="text"/></td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('webmaster_name') %>:</td>
                                <td class="formbox-content">
                                    <input type="text" name="blogWebMaster" size="60"
                                                                   value="<%= helper.HTMLEncodeLite(
                                                                           theCache.settings["blogWebMaster"]) %>"
                                                                   maxlength="150" class="text"/></td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('webmaster_email') %>:</td>
                                <td class="formbox-content">
                                    <input type="text" name="blogWebMasterEmail" size="60"
                                                                   value="<%= helper.HTMLEncodeLite(
                                                                           theCache.settings["blogWebMasterEmail"]) %>"
                                                                   maxlength="150" class="text"/></td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('language_code') %>:</td>
                                <td class="formbox-content">
                                    <input type="text" name="blogLanguage" size="20"
                                                                   value="<%= helper.HTMLEncodeLite(
                                                                           theCache.settings["blogLanguage"]) %>"
                                                                   maxlength="20" class="text"/> <span
                                            class="comment-text"><a
                                                href="http://blogs.law.harvard.edu/tech/stories/storyReader$15"
                                                target="_blank">* <%= __('language_code_ref') %></a></span></td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('default_view') %>:</td>
                                <td class="formbox-content">
                                    <input type="radio" name="defaultViewMode" value=""
                                            <% if(theCache.settings["defaultViewMode"] == 0) {%>
                                                     checked="checked"
                                            <% } %>
                                    /><%= __('normal') %>&nbsp;&nbsp;
                                    <input type="radio" name="defaultViewMode"
                                                                             value="true"
                                            <% if(theCache.settings["defaultViewMode"] == 1) { %>
                                                     checked="checked"
                                    <% } %>
                                    /><%= __('list') %></td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('article_per_page') %>:</td>
                                <td class="formbox-content"><%= __('normal') %>: <input type="text"
                                                                                        name="articlePerPageNormal"
                                                                                        size="8"
                                                                                        value="<%= theCache.settings["articlePerPageNormal"] %>"
                                                                                        maxlength="4" class="text"/>&nbsp;&nbsp; <%= __('list') %>
                                    : <input type="text" name="articlePerPageList" size="8"
                                             value="<%= theCache.settings["articlePerPageList"] %>" maxlength="4"
                                             class="text"/></td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('entry_per_page') %>:</td>
                                <td class="formbox-content">
                                    <input type="text" name="listEntryPerPage" size="4"
                                                                   value="<%= theCache.settings["listEntryPerPage"] %>"
                                                                   maxlength="4" class="text"/> <%= __('entries') %>
                                    <span class="comment-text">(<%= __('apply_comm_tb') %>)</span></td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('comment_per_page') %>:</td>
                                <td class="formbox-content">
                                    <input type="text" name="commentPerPage" size="4"
                                                                   value="<%= theCache.settings["commentPerPage"] %>"
                                                                   maxlength="4" class="text"/> <%= __('entries') %>
                                    <span class="comment-text">(<%= __('apply_article_page') %>)</span></td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('comment_time_order') %>:</td>
                                <td class="formbox-content">
                                    <input type="radio" name="commentTimeOrder" value=""
                                            <% if(theCache.settings["commentTimeOrder"] == 0) {%>
                                                                   checked="checked"
                                            <% } %>
                                    /><%= __('time_asc') %>&nbsp;&nbsp;
                                    <input type="radio" name="commentTimeOrder"
                                                                               value="true"
                                            <% if(theCache.settings["commentTimeOrder"] == 1){%>
                                                                               checked="checked"
                                            <% } %>
                                    /><%= __('time_desc') %></td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%- __('show_tb_w_comm') %>:</td>
                                <td class="formbox-content">
                                    <input type="checkbox" name="showTrackbackWithComment"
                                                                   value="true"
                                            <% if(theCache.settings["showTrackbackWithComment"] == 1){%>
                                                                   checked="checked"
                                            <% } %>
                                    /> <%= __('enabled') %>
                                    &nbsp;<input type="radio" name="showTrackbackPosition" value="0"
                                            <% if(theCache.settings["showTrackbackPosition"] == 0){%>
                                                 checked="checked"
                                            <% } %>
                                    /><%= __('normal') %>&nbsp;
                                    <input type="radio" name="showTrackbackPosition"
                                                                       value="1"
                                            <% if(theCache.settings["showTrackbackPosition"] == 1){%>
                                                                       checked="checked"
                                            <% } %>
                                    /><%= __('on_comm_top') %>&nbsp;
                                    <input type="radio" name="showTrackbackPosition"
                                                                            value="2"
                                            <% if(theCache.settings["showTrackbackPosition"] == 2){%>
                                                                            checked="checked"
                                            <% } %>
                                    /><%= __('on_comm_bottom') %>
                                </td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('recent_articles') %>:</td>
                                <td class="formbox-content">
                                    <input type="text" name="recentArticleList" size="4"
                                                                   value="<%= theCache.settings["recentArticleList"] %>"
                                                                   maxlength="4" class="text"/> <%= __('entries') %>
                                </td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('recent_comments') %>:</td>
                                <td class="formbox-content">
                                    <input type="text" name="recentCommentList" size="4"
                                                                   value="<%= theCache.settings["recentCommentList"] %>"
                                                                   maxlength="4" class="text"/> <%= __('entries') %>
                                </td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('dynamic_calendar') %>:</td>
                                <td class="formbox-content">
                                    <input type="checkbox" name="enableDynamicCalendar"
                                                                   value="true"
                                            <% if(theCache.settings["enableDynamicCalendar"] == 1){%>
                                                                   checked="checked"
                                            <% } %>
                                    /> <%= __('enabled') %> <span class="comment-text">(<%= __('cal_more_query') %>
                                        )</span></td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('enable_split') %>:</td>
                                <td class="formbox-content">
                                    <input type="checkbox" name="enableContentAutoSplit"
                                                                   value="true"
                                            <% if(theCache.settings["enableContentAutoSplit"] == 1){%>
                                                                   checked="checked"
                                            <% } %>
                                    /> <%= __('split_at') %>
                                    <input type="text" name="contentAutoSplitChars" size="4"
                                                                    value="<%= theCache.settings["contentAutoSplitChars"] %>"
                                                                    maxlength="4" class="text"/> <%= __('chars') %>
                                </td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('enable_reg') %>:</td>
                                <td class="formbox-content">
                                    <input type="checkbox" name="enableRegister" value="true"
                                            <% if(theCache.settings["enableRegister"] == 1){%>
                                                                   checked="checked"
                                            <% } %>
                                    /> <%= __('enabled') %></td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('enable_scode') %>:</td>
                                <td class="formbox-content">
                                    <input type="checkbox" name="enableSecurityCode"
                                                                   value="true"
                                            <% if(theCache.settings["enableSecurityCode"] == 1){%>
                                                                   checked="checked"
                                            <% } %>
                                    /> <%= __('enabled') %></td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('enable_trackback') %>:</td>
                                <td class="formbox-content">
                                    <input type="checkbox" name="enableTrackbackIn" value="true"
                                            <% if(theCache.settings["enableTrackbackIn"] == 1){%>
                                                                   checked="checked"
                                            <% } %>
                                    /> <%= __('incoming') %>&nbsp;&nbsp;
                                    <input type="checkbox"
                                                                                name="enableTrackbackOut" value="true"
                                            <% if(theCache.settings["enableTrackbackOut"] == 1){%>
                                                                                checked="checked"
                                            <% } %>
                                    /> <%= __('outgoing') %></td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('enable_comment') %>:</td>
                                <td class="formbox-content">
                                    <input type="checkbox" name="enableComment" value="true"
                                            <% if(theCache.settings["enableComment"] == 1){%>
                                                                   checked="checked"
                                            <% } %>
                                    /> <%= __('enabled') %></td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('max_comment_length') %>:</td>
                                <td class="formbox-content">
                                    <input type="text" name="maxCommentLength" size="4"
                                                                   value="<%= theCache.settings["maxCommentLength"] %>"
                                                                   maxlength="4" class="text"/> <%= __('chars') %>
                                </td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('max_comment_url_count') %>:</td>
                                <td class="formbox-content">
                                    <input type="text" name="maxCommentURLCount" size="4"
                                                                   value="<%= theCache.settings["maxCommentURLCount"] %>"
                                                                   maxlength="4"
                                                                   class="text"/> <%= __('max_comment_url_count_note') %>
                                </td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('enable_guestbook') %>:</td>
                                <td class="formbox-content">
                                    <input type="checkbox" name="enableGuestBook" value="true"
                                            <% if(theCache.settings["enableGuestBook"] == 1){%>
                                                                   checked="checked"
                                            <% } %>
                                    /> <%= __('enabled') %></td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('gbook_page_size') %>:</td>
                                <td class="formbox-content">
                                    <input type="text" name="entryPerPageGuestBook" size="4"
                                                                   value="<%= theCache.settings["entryPerPageGuestBook"] %>"
                                                                   maxlength="4" class="text"/></td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('style_sheet') %>:</td>
                                <td class="formbox-content">
                                    <input type="text" name="styleSheet" size="60"
                                                                   value="<%= helper.HTMLEncodeLite(
                                                                           theCache.settings["styleSheet"]) %>"
                                                                   maxlength="250" class="text"/></td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('image_folder') %>:</td>
                                <td class="formbox-content">
                                    <input type="text" name="imageFolder" size="60"
                                                                   value="<%= helper.HTMLEncodeLite(
                                                                           theCache.settings["imageFolder"]) %>"
                                                                   maxlength="250" class="text"/></td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('smilies_folder') %>:</td>
                                <td class="formbox-content">
                                    <input type="text" name="smiliesFolder" size="60"
                                                                   value="<%= helper.HTMLEncodeLite(
                                                                           theCache.settings["smiliesFolder"]) %>"
                                                                   maxlength="250" class="text"/></td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('smilies_per_row') %>:</td>
                                <td class="formbox-content">
                                    <input type="text" name="smiliesPerRow" size="4"
                                                                   value="<%= theCache.settings["smiliesPerRow"] %>"
                                                                   maxlength="4" class="text"/> <span
                                            class="comment-text">(<%= __('for_forms') %>)</span></td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('flood_control') %>:</td>
                                <td class="formbox-content">
                                    <input type="text" name="minPostDuration" size="4"
                                                                   value="<%= theCache.settings["minPostDuration"] %>"
                                                                   maxlength="4"
                                                                   class="text"/> <%= __('between_posts') %></td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('record_visitor') %>:</td>
                                <td class="formbox-content">
                                    <input type="checkbox" name="enableVisitorRecord"
                                                                   value="true"
                                            <% if(theCache.settings["enableVisitorRecord"] == 1){%>
                                                                   checked="checked"
                                            <% } %>
                                    /> <%= __('record') %>
                                    <input type="text" name="maxVisitorRecord" size="4"
                                                                  value="<%= theCache.settings["maxVisitorRecord"] %>"
                                                                  maxlength="4"
                                                                  class="text"/> <%= __('visitors_not_affect') %>
                                </td>
                            </tr>
                            </tr>
                            <td class="formbox-rowheader"><%= __('enable_upload') %>:</td>
                            <td class="formbox-content">
                                <input type="checkbox" name="enableUpload" value="true"
                                        <% if(theCache.settings["enableUpload"] == 1){%>
                                                               checked="checked"
                                        <% } %>
                                /> <%= __('enabled') %></td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('upload_size') %>:</td>
                                <td class="formbox-content">
                                    <input type="text" name="uploadSize" size="8"
                                                                   value="<%= theCache.settings["uploadSize"] %>"
                                                                   maxlength="20" class="text"/> <%= __('bytes') %>
                                </td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('upload_path') %>:</td>
                                <td class="formbox-content">
                                    <input type="text" name="uploadPath" size="60"
                                                                   value="<%= helper.HTMLEncodeLite(
                                                                           theCache.settings["uploadPath"]) %>"
                                                                   maxlength="250" class="text"/></td>
                            </tr>
                            <tr>
                                <td class="formbox-rowheader"><%= __('upload_type') %>:</td>
                                <td class="formbox-content">
                                    <input type="text" name="uploadTypes" size="60"
                                                                   value="<%= helper.HTMLEncodeLite(
                                                                           theCache.settings["uploadTypes"]) %>"
                                                                   maxlength="250" class="text"/> <span
                                            class="comment-text">(<%= __('seperate_by') %>)</span></td>
                            </tr>
                            <tr>
                                <td></td>
                                <td><br/><input type="Submit" name="Submit" value=" <%= __('save_change') %> "
                                                class="button"/></td>
                            </tr>
                    </table>
                        </form>
                </div>
            </div>
        </div>
    </div>
    <% include adminSidebar %>
    <div class="clear"></div>
</div>

<% include ../pageFooter %>
